package com.hm.service.Impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource; //autoWried

import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.SessionAttributes;

import com.hm.mapper.EmployeeMapper;
import com.hm.model.Employee;
import com.hm.service.EmployeeService;

@Service
@SessionAttributes("employeeMapper")
public class EmployeeServiceImpl implements EmployeeService {

	@Resource
	private EmployeeMapper employeeMapper;
	
	@Override
	public List<Employee> findAll() throws Exception{
		return employeeMapper.findAll();
	}
}
